import Http from "@/api/http";
import HttpServer from "@/api/useServerRequest";

/**
 * @description 合作伙伴简介
 */
export const getPartnerList = () => {
  return Http.get("/prod-api/api/partner/partnerList");
};

/**
 * @description 渠道伙伴政策
 */
export const getPartnerShipPolicyList = () => {
  return Http.get("/prod-api/api/partner/partnershipPolicyList");
};
/**
 * @description 战略合作伙伴
 */
export const getPartnerScreenList = () => {
  return Http.get("/prod-api/api/partner/screenList");
};
/**
 * @description 加盟流程
 */
export const getPartnerJoiningProcessList = () => {
  return Http.get("/prod-api/api/partner/joiningProcessList");
};
/**
 * @description 渠道加盟
 */
export const getPartnerChannelJoiningList = () => {
  return Http.get("/prod-api/api/partner/channelJoiningList");
};
/**
 * @description 渠道权益
 */
export const getPartnerChannelEquityList = () => {
  return Http.get("/prod-api/api/partner/channelEquityList");
};

/**
 * @description 合作等级
 */
export const getPartnerContractLevel = () => {
  return Http.get("/prod-api/api/partner/selectContractLevelList/contract_level");
};

/**
 * @description 合作提交
 */
export const partnerSub = (data:any) => {
  return HttpServer.post("/prod-api/api/partner",data);
};


/**
 * @description 合作伙伴简介
 */
export const getPartnerListServer = () => {
  return HttpServer.get("/prod-api/api/partner/partnerList");
};

/**
 * @description 渠道伙伴政策
 */
export const getPartnerShipPolicyListServer = () => {
  return HttpServer.get("/prod-api/api/partner/partnershipPolicyList");
};
/**
 * @description 战略合作伙伴
 */
export const getPartnerScreenListServer = () => {
  return HttpServer.get("/prod-api/api/partner/screenList");
};
/**
 * @description 加盟流程
 */
export const getPartnerJoiningProcessListServer = () => {
  return HttpServer.get("/prod-api/api/partner/joiningProcessList");
};
/**
 * @description 渠道加盟
 */
export const getPartnerChannelJoiningListServer = () => {
  return HttpServer.get("/prod-api/api/partner/channelJoiningList");
};
/**
 * @description 渠道权益
 */
export const getPartnerChannelEquityListServer = () => {
  return HttpServer.get("/prod-api/api/partner/channelEquityList");
};

/**
 * @description 合作等级
 */
export const getPartnerContractLevelServer = () => {
  return HttpServer.get("/prod-api/api/partner/selectContractLevelList/contract_level");
};
